package com.github.vioao.wechat.bean.response.component.wxa;

import com.github.vioao.wechat.bean.response.BaseResponse;

import java.util.List;

/**
 * 获取草稿箱内的所有临时代码草稿接口返回.
 *
 * @author vioao
 */
public class GetDraftCodeTemplateListResponse extends BaseResponse {
    private List<DraftTemplate> draftList;

    public List<DraftTemplate> getDraftList() {
        return draftList;
    }

    public void setDraftList(List<DraftTemplate> draftList) {
        this.draftList = draftList;
    }

    @Override
    public String toString() {
        return "DraftTemplateListResponse{"
                + "draftList=" + draftList
                + ", errcode=" + super.getErrcode()
                + ", errmsg='" + super.getErrmsg() + '\''
                + '}';
    }

    public static class DraftTemplate {
        /**
         * 说开发者上传草稿时间
         */
        private Long createTime;
        /**
         * 模版版本号，开发者自定义字段
         */
        private String userVersion;
        /**
         * 模版描述 开发者自定义字段
         */
        private String userDesc;
        /**
         * 草稿id
         */
        private Integer draftId;
        /**
         * 来源appid
         */
        private String  sourceMiniprogramAppid;
        /**
         * 来源小程序
         */
        private String  sourceMiniprogram;
        /**
         * 上传人
         */
        private String  developer;

        public String getSourceMiniprogramAppid() {
            return sourceMiniprogramAppid;
        }

        public void setSourceMiniprogramAppid(String sourceMiniprogramAppid) {
            this.sourceMiniprogramAppid = sourceMiniprogramAppid;
        }

        public String getSourceMiniprogram() {
            return sourceMiniprogram;
        }

        public void setSourceMiniprogram(String sourceMiniprogram) {
            this.sourceMiniprogram = sourceMiniprogram;
        }

        public String getDeveloper() {
            return developer;
        }

        public void setDeveloper(String developer) {
            this.developer = developer;
        }

        public Long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Long createTime) {
            this.createTime = createTime;
        }

        public String getUserVersion() {
            return userVersion;
        }

        public void setUserVersion(String userVersion) {
            this.userVersion = userVersion;
        }

        public String getUserDesc() {
            return userDesc;
        }

        public void setUserDesc(String userDesc) {
            this.userDesc = userDesc;
        }

        public Integer getDraftId() {
            return draftId;
        }

        public void setDraftId(Integer draftId) {
            this.draftId = draftId;
        }

        @Override
        public String toString() {
            return "DraftTemplate{" +
                    "createTime=" + createTime +
                    ", userVersion='" + userVersion + '\'' +
                    ", userDesc='" + userDesc + '\'' +
                    ", draftId=" + draftId +
                    '}';
        }
    }
}
